#include "licence_toolActivity.h"
#include "licence_lib.h"

char decode(const char c, const int d) {
	return c-d;
}

JNIEXPORT jint JNICALL Java_licence_toolActivity_check
  (JNIEnv *env, jobject javaThis, jstring licenceContent, jstring os, jstring packageName, jstring simID, jstring actualDate) {

	const char* licenceC = (*env)->GetStringUTFChars(env, licenceContent, 0);
	const char* osC = (*env)->GetStringUTFChars(env, os, 0);
	const char* packageNameC = (*env)->GetStringUTFChars(env, packageName, 0);
	const char* simIDC = (*env)->GetStringUTFChars(env, simID, 0);
	const char* actualDateC = (*env)->GetStringUTFChars(env, actualDate, 0);

	return check(licenceC, osC, packageNameC, simIDC, actualDateC);

}
s
